export top_module := sync_fifo
export filelist   := ../source/syn.lst

##############################################################
##
## PHONY order
##
##############################################################
.PHONY: run dc clean

run: clean dc

dc: 
	@../script/gain_rtl_path.py ${filelist}
	@dc_shell-t -f ../script/run.tcl | tee ${top_module}.log
	@mv *.mr ../result
	@mv *.syn ../result
	@mv *.pvl ../result

clean:
	@rm ../report -rf
	@rm ../result -rf
	@rm *.log *.svf -f
